<div class="problemindexholder" problemindex="A">
 <div class="ttypography">
  <div class="problem-statement">
   <div class="header">
    <div class="title">
     A. Binary Protocol
    </div>
    <div class="time-limit">
     <div class="property-title">
      time limit per test
     </div>
     1 second
    </div>
    <div class="memory-limit">
     <div class="property-title">
      memory limit per test
     </div>
     256 megabytes
    </div>
    <div class="input-file">
     <div class="property-title">
      input
     </div>
     standard input
    </div>
    <div class="output-file">
     <div class="property-title">
      output
     </div>
     standard output
    </div>
   </div>
   <div>
    <p>
     Polycarp has just invented a new binary protocol for data transmission. He is encoding positive integer decimal number to binary string using following algorithm:
    </p>
    <ul>
     <li>
      Each digit is represented with number of
      <span class="tex-font-style-tt">
       '1'
      </span>
      characters equal to the value of that digit (for
      <span class="tex-font-style-tt">
       0
      </span>
      it is zero ones).
     </li>
     <li>
      Digits are written one by one in order corresponding to number and separated by single
      <span class="tex-font-style-tt">
       '0'
      </span>
      character.
     </li>
    </ul>
    <p>
     Though Polycarp learnt how to encode the numbers, he has no idea how to decode them back. Help him calculate the decoded number.
    </p>
   </div>
   <div class="input-specification">
    <div class="section-title">
     Input
    </div>
    <p>
     The first line contains one integer number
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     (
     <span class="tex-span">
      1 ≤
      <i>
       n
      </i>
      ≤ 89
     </span>
     ) — length of the string
     <span class="tex-span">
      <i>
       s
      </i>
     </span>
     .
    </p>
    <p>
     The second line contains string
     <span class="tex-span">
      <i>
       s
      </i>
     </span>
     — sequence of
     <span class="tex-font-style-tt">
      '0'
     </span>
     and
     <span class="tex-font-style-tt">
      '1'
     </span>
     characters, number in its encoded format. It is guaranteed that the number corresponding to the string is positive and doesn't exceed
     <span class="tex-span">
      10
      <sup class="upper-index">
       9
      </sup>
     </span>
     . The string always starts with
     <span class="tex-font-style-tt">
      '1'
     </span>
     .
    </p>
   </div>
   <div class="output-specification">
    <div class="section-title">
     Output
    </div>
    <p>
     Print the decoded number.
    </p>
   </div>
   <div class="sample-tests">
    <div class="section-title">
     Examples
    </div>
    <div class="sample-test">
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>3<br/>111<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>3<br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>9<br/>110011101<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>2031<br/></pre>
     </div>
    </div>
   </div>
  </div>
  <p>
  </p>
 </div>
</div>
